function enumerable() {
    return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
        const updatedDescriptor: PropertyDescriptor = {
            ...descriptor,
            enumerable: false
        };
        return updatedDescriptor;
    };
}

class Greeter {
    greeting: string;
    constructor(message: string) {
        this.greeting = message;
    }

    @enumerable
    greet() {
        return "Hello, " + this.greeting;
    }
}